package com.niiwoo.civet.trade.service.local.newRefund.notify.mq;

import org.springframework.stereotype.Component;

import com.niiwoo.asset.org.business.dto.mq.ProjectStatusChangeDTO;
import com.niiwoo.civet.trade.service.local.newRefund.notify.dto.RefundNotifyDTO;
import com.niiwoo.civet.trade.service.local.newRefund.notify.enums.RefundNotifyEnum;

/**
 * 机构标的状态变更MQ通知
 * 
 * 触发条件：标的逾期、标的结清、标的逾期到正常还款
 *
 * @author: kevin.jia
 * @version 1.0.0
 */
@Component
public class OrgProjectStatusChangeNotify extends MQRefundNotify {
	
	@Override
	public Object bulidParam(RefundNotifyDTO refundNotifyDTO) {
		ProjectStatusChangeDTO projectStatusChangeDTO = new ProjectStatusChangeDTO();
		projectStatusChangeDTO.setProjectId(refundNotifyDTO.getProject().getProjectId());
		return projectStatusChangeDTO;
	}
	
	@Override
	public RefundNotifyEnum getType() {
		return RefundNotifyEnum.ORG_PROJECT_STATUS_CHANGE;
	}
}